import Qt 4.7
import "scripts.js" as Game

Rectangle {
    id: rectangle2
    x: 0
    y: 0
    width: 360
    height: 640
    color: "#000000"

    Image {
        id: image1
        x: 0
        y: 0
        width: parent.width
        height: parent.height
        source: "images/bg.jpg"
    }

    Image {
        id: homeBtn
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 5
        anchors.horizontalCenter: parent.horizontalCenter
        height: 64
        width: 64
        z: 2
        source: "images/homebtn.png"
        opacity: 1

        MouseArea {
            anchors.fill : parent
            onPressed: parent.source = "images/homebtn2.png"
            onReleased: parent.source = "images/homebtn.png"
            onClicked: {
                Game.setState("")
            }
        }
    }

    Text {
        id: text2
        color: "#ffffff"
        text: "How to play?"
        font.pixelSize: 34
        anchors.topMargin: 10
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top

    }

    Item {
        id: item1
        anchors.fill: parent

        Text {
            id: text3
            x: 75
            color: "#ffffff"
            text: "When you see monkey in the hole,
press it before it goes away.

If you miss three monkeys or
the screen fills, you lose the game.

Blue monkey - 1 point
Violet monkey - 2 points
Yellow monkey - 3 points"
font.pixelSize: 23
            anchors.fill: parent
            anchors.top: parent.top
            anchors.topMargin: 80
            anchors.horizontalCenter: parent.horizontalCenter
            smooth: false
            font.bold: false
            verticalAlignment: Text.AlignTop
            horizontalAlignment: Text.AlignHCenter
            wrapMode: Text.WordWrap
        }

        Text {
            id: text1
            x: 46
            y: 627
            color: "#ffffff"
            text: "About application
Developer - JiiKoo / Juuso Kosonen
Name - Hit the Monkey 2 (v2.0.1)
More info - http://www.jiikoo.com"
font.pixelSize: 20
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 120

        }
    }
}
